package tutorial.service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;

import tutorial.entity.FacilityEntity;

public class FacilityService {
    
    Logger logger= Logger.getLogger(FacilityService.class);

    public List<Map<String, String>> findAllFacilityNo() {
        List<Map<String, String>> facilityNoList = new ArrayList<Map<String, String>>();
        Map<String, String> map1 = new HashMap<String, String>();
        map1.put("value", "F01");
        map1.put("label", "AAA");
        facilityNoList.add(map1);
        Map<String, String> map2 = new HashMap<String, String>();
        map2.put("value", "F02");
        map2.put("label", "BBB");
        facilityNoList.add(map2);
        return facilityNoList;
    }

    public FacilityEntity findFacility(String facilityNo) {
        logger.info("facilityNo:" + facilityNo);
        FacilityEntity entity = new FacilityEntity();
        entity.setFacilityName("施設" + facilityNo);
        return entity;
    }

}
